home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 1874 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.0 KB  |  30 lines

  1. Path: colossus.holonet.net!starnet!warren.porter
  2. From: warren.porter@starnetbbs.com (Warren Porter)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Passing arguments when de
  5. Date: Tue, 16 Jan 1996 21:46:00 GMT
  6. Message-ID: <96011707352720243@starnetbbs.com>
  7. Organization: StarNet BBS & Services 601.981.9228
  8. Distribution: world
  9. References: <DL2vJ6.M2F@novice.uwaterloo.ca>
  10.  
  11.                           01/16/96 03:41 pm
  12.  
  13. JC│From: jching@novice.uwaterloo.ca (Jonathan Ching)
  14. JC│Subject: Passing arguments when debugging with dbx
  15.  
  16.  
  17. JC│For example, if my program takes two arguments like:
  18. JC│
  19. JC│myprogram arg1 arg2
  20. JC│
  21. JC│How would I put arg1 and arg2 on the command line when I invoke
  22. JC│dbx without dbx thinking that they were arguments for dbx?
  23.  
  24. Many times I wished I could have done that.  A few workarounds:
  25. work on a copy of your program where all the options are hardcoded
  26. or prepare to read options as environment variables, modified with
  27. the SET command.  Good luck.
  28. ---
  29.  ■ SPEED 2.00 #1672 ■ Command failed: (A)bort, (R)etry, (F)orget it happened?
  30.